<ion-view title="编辑信息">
    <ion-nav-buttons side="right">
        <button class="button button-clear button-outline" ng-click="doSave()">
            保存
        </button>
    </ion-nav-buttons>
    <ion-content class="crm-content">
        <div class="list">
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">房间面积(M&sup2)</span>
                <input type="text" placeholder="" ng-model="hotelRoomInfo.area">
            </label>
            <label class="item item-input item-select">
                <div class="input-label">
                    卫生间类型
                </div>
                <select ng-options="item.id as item.name for item in DICT['washroom']" ng-model="hotelRoomInfo.washroom">
                    <option value="">请选择</option>
                </select>
            </label>
        </div>
        <div class="list">
            <label class="item item-input item-select">
                <div class="input-label">
                    床型
                </div>
                <select ng-options="item.id as item.name for item in DICT['bedTypes']" ng-model="hotelRoomInfo.bedType">
                    <option value="">请选择</option>
                </select>
            </label>
            <label class="item item-input item-select" ng-repeat="item in hotelRoomInfo.bedSize track by $index">
                <div class="input-label">
                    尺寸
                </div>
                <select ng-options="item.id as item.name for item in DICT['sizeTypes']" ng-model="hotelRoomInfo.bedSize[$index]">
                    <option value="">请选择</option>
                </select>
            </label>
        </div>
        <ul class="list">
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotelRoomInfo.def[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png" ng-click="showGallery('def', 1)">
                主展图（仅限1张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotelRoomInfo.toilet[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png"  ng-click="showGallery('toilet', 3)">
                卫生间（最多3张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotelRoomInfo.bed[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png"  ng-click="showGallery('bed', 3)">
                床（最多3张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
        </ul>
    </ion-content>
</ion-view>